Skip to content

Conversation

luca3s
Copy link
Owner

@luca3s luca3s commented Jul 26, 2025

No description provided.

@luca3s
Copy link
Owner Author

luca3s commented Aug 13, 2025

I have reworked it a bit to remove "disable". I think i either addressed you comments or removed the text they were part of.

I hope you are fine with exposing the disable functions for now. This isn't going on stable rust, so they could be removed once the attribute exists.

from a function not sanitized. So a function could be both sanitized and not sanitized in one program execution.
The sanitizer can be disabled using the external function `__rtsan_disable()`. It can be enabled again using
`__rtsan_enable()`. Entering a real-time context while the sanitizer is enabled is not possible.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Entering a real-time context while the sanitizer is enabled is not possible.

I think you meant to say the opposite here but, regardless, I think it's possibly not worth including - IMHO it's more confusing than helpful for the average user who isn't aware of the sanitizer's inner workings. If you really feel it should be included, I'd suggest maybe something like Entering a real-time context while the sanitizer is disabled does not reactivate the sanitization.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah i thought about that too, will remove it.

Is there a open llvm/clang (or even in one of your repos) about it?
Just that it's written down at least somewhere.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the reminder! Yes - just added one

@davidtrevelyan
Copy link

I have reworked it a bit to remove "disable". I think i either addressed you comments or removed the text they were part of.

I hope you are fine with exposing the disable functions for now. This isn't going on stable rust, so they could be removed once the attribute exists.

Great - I think your changes are nice improvements! I've left a couple more minor comments but other than those it LGTM 👍

@luca3s luca3s force-pushed the docs-attr branch 2 times, most recently from 1cdd36f to 7ea4dc6 Compare August 19, 2025 13:06
@luca3s luca3s changed the base branch from sanitize-off-on to master August 19, 2025 13:06
luca3s pushed a commit that referenced this pull request Sep 14, 2025
…=jieyouxu

Rehome 30 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` [#1 of Batch #2]

Part of rust-lang#133895

Methodology:

1. Refer to the previously written `tests/ui/SUMMARY.md`
2. Find an appropriate category for the test, using the original issue thread and the test contents.
3. Add the issue URL at the bottom (not at the top, as that would mess up stderr line numbers)
4. Rename the tests to make their purpose clearer

Inspired by the methodology that `@Kivooeo` was using.

r? `@jieyouxu`
luca3s pushed a commit that referenced this pull request Sep 14, 2025
…=jieyouxu

Rehome 30 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` [#2 of Batch #2]

Part of rust-lang#133895

Methodology:

1. Refer to the previously written `tests/ui/SUMMARY.md`
2. Find an appropriate category for the test, using the original issue thread and the test contents.
3. Add the issue URL at the bottom (not at the top, as that would mess up stderr line numbers)
4. Rename the tests to make their purpose clearer

Inspired by the methodology that `@Kivooeo` was using.

r? `@jieyouxu`
luca3s pushed a commit that referenced this pull request Sep 14, 2025
…r=jieyouxu

Rehome 30 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` [rust-lang#3 of Batch #2]

Part of rust-lang#133895

Methodology:

1. Refer to the previously written `tests/ui/SUMMARY.md`
2. Find an appropriate category for the test, using the original issue thread and the test contents.
3. Add the issue URL at the bottom (not at the top, as that would mess up stderr line numbers)
4. Rename the tests to make their purpose clearer

Inspired by the methodology that `@Kivooeo` was using.

r? `@jieyouxu`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants